package com.example.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class FilmPage extends InternalPage {
	@FindBy(css = "img[alt=\"Visit IMDb\"]")
	public WebElement iconVisit;
	
	@FindBy(css = "img[alt=\"View trailer\"]")
	public WebElement iconViewTrailer;
	
	@FindBy(css = "img[alt=\"Download cover\"]")
	public WebElement iconDownloadCover;
	
	@FindBy(css = "img[alt=\"Not own\"]")
	public WebElement iconNotOwn;
	
	@FindBy(css = "img[alt=\"Seen\"]")
	public WebElement iconSeen;
	
	@FindBy(css = "img[alt=\"Edit\"]")
	public WebElement iconEdit;
	
	@FindBy(css = "img[alt=\"Remove\"]")
	public WebElement Remove;
		
	public AddMoviePage openForEdit(){
		iconEdit.click();
		return MyPageFactory.getPage(driver, AddMoviePage.class);
	}
	
	public boolean isOnThisPage(){
		return iconVisit.isDisplayed();
	}
}
